//
// Decompiled by Jadx - 440ms
//
package gc;

import android.view.View;
import android.widget.TextView;
import fi.b;
import fi.e;
import fi.w;
import fn.j;
import fn.y;
import gc.bl;
import gc.bv;
import gj.g;
import gj.k;
import me.plusne.NativeTools;
import me.plusne.common.Json.JsonHookStatic;
import r.f;

public final class bj implements View.OnLongClickListener {
    public final int a;
    public final Object b;

    public bj(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override
    public final boolean onLongClick(View view) {
        int i = this.a;
        Object obj = this.b;
        switch (i) {
            case 0:
                bl.a aVar = (bl.a) obj;
                aVar.getClass();
                JsonHookStatic jsonHookStatic = y.by;
                w wVar = new w(jsonHookStatic.getActivity());
                b bVar = new b();
                bVar.d("GroupID", jsonHookStatic.getSoul().getGroupId(), "");
                bVar.b("发送自定义猜拳");
                bVar.b("发送自定义骰子");
                bVar.b("发送收藏语音");
                if (NativeTools.n(JsonHookStatic.l, jsonHookStatic.getUserInfo())) {
                    bVar.h("本群蓝色字体并@所有人", (String) null, (String) null, y.ch("group_" + jsonHookStatic.getSoul().getGroupId() + "_at", false));
                    bVar.h("自动转为系统提示发送", (String) null, (String) null, y.ch("group_" + jsonHookStatic.getSoul().getGroupId() + "_system", false));
                    bVar.d("修改本群昵称", "更新有延迟", "");
                    bVar.b("发送关闭邀请加群提示");
                    bVar.b("发送系统提示");
                    bVar.b("测试");
                }
                wVar.ay(bVar);
                wVar.bj(fi.e.LIST_ITEM);
                wVar.ae = new bk(aVar, 0);
                wVar.bk();
                return true;
            case 1:
                br brVar = (br) obj;
                float alpha = brVar.cq.getAlpha();
                float f = 1.0f;
                TextView textView = brVar.cq;
                if (alpha == 1.0f) {
                    f = 0.0f;
                }
                textView.setAlpha(f);
                return true;
            case 2:
                int i2 = bv.b.a;
                j.ah(obj);
                f i3 = f.i();
                i3.n();
                i3.l("已将源消息复制到剪贴板");
                return false;
            default:
                k kVar = (k) obj;
                kVar.getClass();
                JsonHookStatic jsonHookStatic2 = y.by;
                if (jsonHookStatic2.getActivity() != null && jsonHookStatic2.isLogin()) {
                    fi.y.e(jsonHookStatic2.getActivity());
                    k.a.az();
                    new gj.f(jsonHookStatic2.getActivity(), new g(kVar, 3));
                } else {
                    androidx.activity.b.r(jsonHookStatic2.getActivity(), "未登录");
                }
                return false;
        }
    }
}
